//
//  DishesDB.m
//  Order
//
//  Created by funny on 12-3-24.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import "DishesDB.h"


@implementation DishesDB

@synthesize dishesID, name, packagePrice, singlePrice, dishesType;

- (id)initWithName:(NSString *)newName andPackagePrice:(float)newPackagePrice andSinglePrice:(float)newSinglePrice andDishesType:(DishesType)newDishesType{
	
    self = [super init];
    if (self) {
        // Custom initialization.
		
		name = [newName copy];
		
		packagePrice = newPackagePrice;
		singlePrice = newSinglePrice;
    }
    return self;
}

//+ (OrderDB *)orderDBWithName:(NSString *)newName andPackagePrice:(float)newPackagePrice andSinglePrice:(float)newSinglePrice{
//	OrderDB *newOrderDB = [[[OrderDB alloc] initWithName:newName andPackagePrice:newPackagePrice andSinglePrice:newSinglePrice] autorelease];
//	
//	return newOrderDB;
//}



- (void)dealloc {
	[name release];
	
    [super dealloc];
}

@end
